package com.lyn.common.kit;

import java.util.concurrent.ThreadLocalRandom;

import org.apache.commons.lang3.RandomStringUtils;

public class RandomKit {
	/**
	 * 随机字母或数字，固定长度，使用ThreadLocalRandom
	 */
	public static String randomStringFixLength(int length) {
		return RandomStringUtils.random(length, 0, 0, true, true, null, ThreadLocalRandom.current());
	}
}
